﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.IO;
using ComLib.ComFun;

namespace EECMISWS.WebProcessArgs
{
    [DataContract]
    public class QueryPeopleArgs
    {
        [DataMember]
        public string XM { get; set; }

        [DataMember]
        public string SFZH { get; set; }

        [DataMember]
        public string XB { get; set; }

        [DataMember]
        public string CSRQ { get; set; }

        [DataMember]
        public bool HasReadIDCard { get; set; }

        public override string ToString()
        {
            string strRet = string.Format("身份证号:{0};姓名:{1};性别:{2};出生日期:{3};是否刷过身份证:{4}",
                XM,
                SFZH,
                XB,
                CSRQ,
                HasReadIDCard);
            return strRet;
        }

        public bool IsVaild()
        {
            if (!IDCardCheck.Check(SFZH))
            {
                return false;
            }
            return true;
        }
    }
}
